package com.bw.module_live.api

import com.bw.lib_net.NetModule
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

/**
 * @author ykj
 * @date 2025-11-04 18:23
 * @description
 */
@Module
@InstallIn(SingletonComponent::class)
class NetModule {
    /**
     * 提供HomeApi实例
     */
    @Provides
    @Singleton
    fun getHomeApi(@NetModule.CommonRetrofit retrofit: Retrofit):LiveApi{
        return retrofit.create(LiveApi::class.java)
    }
}